package com.sky.mapper.common;

import com.sky.pojo.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author:JinFeng
 * @Date: 2025/06/15 11:30
 * @Description:
 */
@Mapper
public interface SetmealDishMapper {

    Long countByDishIds(@Param("dishIds")List<Long> dishIds);

    /**
     * 批量保存套餐和菜品的关联关系
     * @param setmealDishes
     */
    int insertBatch(List<SetmealDish> setmealDishes);
}
